#include "Solution.h"
#include "SolutionFactory.h"
#include <vector>
using namespace std;

float Solution::mutationRate = 0;

Solution::Solution()
{
   this->fitness = 0;
}

Solution::~Solution() 
{
}

void Solution::setMutationRate(float rate) 
{
    if (rate > 0)
        mutationRate = rate; 
    else
        mutationRate = 0;
}

float Solution::getMutationRate() 
{ 
    return mutationRate; 
}

float Solution::getFitness() const 
{ 
    return fitness; 
}
void Solution::setFitness(float fit) 
{ 
    fitness = fit; 
}

SolutionType Solution::getSerializationIdentifyer() {
    return SF_UNSUPPORTED_SOLUTION;
}
